<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>百顺通云-核对产品订单</title>
<link rel="shortcut icon" href="/images/user/favicon.png" type="image/x-icon">
<link href="/css/user/buy/css.css" rel="stylesheet" type="text/css" />
<link type="text/css" rel="stylesheet" href="/css/dialog.min.css" />
<script type="text/javascript" src="/js/jquery-1.9.1.min.js"></script>
<script type="text/javascript" src = "/js/dialog.min.js"></script>
<script type="text/javascript" src = "/js/bstdialog.min.js"></script>
<script type="text/javascript" src="/js/member-center.js"></script>
<script type="text/javascript" src="/js/user/buy/checkOrders.js"></script>
<script language="JavaScript">
       javascript:window.history.forward(1); 
</script>
</head>

<body>
<div class="Wrapper">
	<!--购物车头部-->
	<jsp:include page="../common/buy/buy_header.jsp"></jsp:include>
	<!--购物车头部-->
	
	<input type="hidden" name="shoppingCartId" value="${shoppingCartId }">
    <!--会员中心中间部分-->
    <div class="uc_bd mt20 mb20 ">
    	<div class="uc_layer">
        	<!--购物车步骤开始-->
            <div class="account">
                <div class="logo fl"><img src="/images/user/buy/logo2.png" width="152" height="60" /></div>
                <c:choose>
               		<c:when test="${pageNum == 1}">
               			<div class="process buyorder fr"></div>
               		</c:when>
               		<c:when test="${pageNum == 2}"> 
               			<div class="process orders fr"></div>
               		</c:when>
                </c:choose>
                <div class="clear"></div>
			</div>
            <!--购物车步骤结束-->
            <!--核对产品订单开始-->
			<div class="account shopping mt20">
            	<h2>请填写信息并核对产品订单</h2>
                <div class="uitopb uitopb_border">
                	<div class="contents">
                    	<div class="payment">
                        	<h2>支付方式：</h2>
                            <div class="uitopb_box">在线支付</div>
                        </div>
						<div class="payment_order mt20">
                        	<h2>商品清单</h2>
                            <div class="uitopb_box">
                            	<form action="">
                                	<table width="100%" border="0" cellspacing="1" cellpadding="0" bgcolor="#d6d4d5" class="payment_order_div">
										<tbody>
											<tr>
												<td align="center" bgcolor="#FFFFFF"><b>产品名称</b></td>
												<td align="center" bgcolor="#FFFFFF"><b>版本号</b></td>
		                                	    <td align="center" bgcolor="#FFFFFF"><b>单价（元）</b></td>
		                                	    <td align="center" bgcolor="#FFFFFF"><b>用户数</b></td>
		                                	    <td width="8%" align="center" bgcolor="#FFFFFF"><b>服务年限</b></td>
		                                	    <td align="center" bgcolor="#FFFFFF"><b>价格（元）</b></td>
		                                	    <td width="10%" align="center" bgcolor="#FFFFFF"><b>数量（套）</b></td>
		                                	    <td width="7%" align="center" bgcolor="#FFFFFF"><b>优惠</b></td>
											</tr>
		                                	  <tr>
		                                	    <td align="center"  bgcolor="#FFFFFF">
			                                	    <input type="hidden" name="userId" value="${userId}">
			                                	    <input type="hidden" name="goodsId" value="${goods.goodsId}">
			                                	    <input type="hidden" name="usersMin" value="${goods.usersMin}">
			                                	    <input type="hidden" name="yearsMin" value="${goods.yearsMin}">
			                                	    ${goods.goodsName}
												</td>
												<td align="center"  bgcolor="#FFFFFF">${goods.goodsVersion}</td>
												<td align="center"  bgcolor="#FFFFFF" id="price"><fmt:formatNumber value="${goods.goodsPrice}" pattern="#0.00"/>
												</td>
												<td align="center"  bgcolor="#FFFFFF" id="userNum">${pageUserNum}</td>
			                                	<td align="center"  bgcolor="#FFFFFF" id="useYear">${pageUseYear}</td>
					                            <td align="center" bgcolor="#FFFFFF" class="proMealPrice">
		                                	    	<fmt:formatNumber value="${pagePrice}" pattern="#0.00"/>
		                                	    </td>
		                                	    <td align="center" bgcolor="#FFFFFF" class="proMealNum">1</td>
		                                	    <td align="center" bgcolor="#FFFFFF" class="discount"><fmt:formatNumber value="${pageDiscount}" pattern="#0.00"/></td>
		                              	      </tr>
                              	      		<tr>
                              	     		 	<td colspan="8" align="right" bgcolor="#e5f4f7">合计：￥<b id="sumPrice"><fmt:formatNumber value="${pagePrice - pageDiscount}" pattern="#0.00"/></b></td>
	                              	     	 </tr>
                              	     	 </tbody>
                              	     </table>
                               	  	<div class="payable mt20">
                                  		<span class="mr20">应付金额：￥<font color="#008fb5" id="finallySumPrice"><fmt:formatNumber value="${pagePrice - pageDiscount}" pattern="#0.00"/></font></span>
                                        <a href="javascript:submitOrders()" class="payable_btn ml20 ">去支付</a>
                                        <div class="clear"></div>
                              	  	</div>
                       	  	  </form>
						  </div>
                        </div>
                    </div>
                </div>
            </div>
            <!--核对产品订单结束-->
      	</div>
    </div>
    <!--会员中心中间部分-->
    <!---------------------------------footer------------------------------------>
  	<jsp:include page="../common/footer.jsp"/>
  	<!---------------------------------footer结束------------------------------------>
</div>
</body>
</html>
